// const {
//   ERROR_CODE_FIELD_VALIDATE_FAILED,
//   ERROR_CODE_PARAM_ERROR,
//   ERROR_CODE_SYSTEM_ERROR,
//   ERROR_CODE_DATA_NOT_EXIST
// } = require('../config/config.default')


module.exports = {
  systemError: {
    code: -1,
    msg: '系统错误',
    result: ''
  },
  dataNotExist: {
    code: -2,
    msg: '数据不存在',
    result: ''
  },
  paramError: {
    code: -3,
    msg: '参数错误',
    result: ''
  },
  actionFailed: {
    code: -4,
    msg: '操作失败',
    result: ''
  },
  fileUploadFail: {
    code: -5,
    msg: '上传失败(请检查文件大小、格式、类型等)',
    result: ''
  },
  success: {
    code: 0,
    msg: '操作成功',
    result: ''
  },
  noAdminPermission: {
    code: 1,
    mag: '没有管理员权限',
    result: ''
  },
  userFormateError: {
    code: 10001,
    mag: '用户名或密码为空',
    result: ''
  },
  userAlreadyExited: {
    code: 10002,
    mag: '用户已经存在',
    result: ''
  },
  userRegisterError: {
    code: 10003,
    msg: '用户注册错误',
    result: ''
  },
  userLoginError: {
    code: 10004,
    msg: '用户名或密码错误',
    result: ''
  },
  tokenExpiredError: {
    code: 10101,
    msg: 'token过期',
    result: ''
  },
  invalidToken: {
    code: 10102,
    msg: 'token无效',
    result: ''
  },
  invalidGoods: {
    code: 20100,
    msg: '商品不存在',
    result: ''
  }
}